<div class="slider">

    <div><a href="#"><img src="<?php bloginfo("template_url"); ?>/images/slide_01.jpg" width="940" height="360" border="0"/></a></div>
    <div><a href="#"><img src="<?php bloginfo("template_url"); ?>/images/slide_02.png" width="940" height="360" border="0"/></a></div>
    <div><a href="#"><img src="<?php bloginfo("template_url"); ?>/images/slide_03.jpg" width="940" height="360" border="0"/></a></div>
    <div><a href="#"><img src="<?php bloginfo("template_url"); ?>/images/slide_04.jpg" width="940" height="360" border="0"/></a></div>
    <div><a href="#"><img src="<?php bloginfo("template_url"); ?>/images/slide_05.jpg" width="940" height="360" border="0"/></a></div>
    <div><a href="#"><img src="<?php bloginfo("template_url"); ?>/images/slide_06.jpg" width="940" height="360" border="0"/></a></div>


<!--<a href="#" class="next"><img src="<?php bloginfo("template_url"); ?>/images/der.png" width="38" height="40" border="0"/></a>
<a href="#" class="prev"><img src="<?php bloginfo("template_url"); ?>/images/izq.png" width="38" height="40" border="0"/></a>-->

</div>

<div class="container">
    <div class="block-horizontal">
        <?php
        query_posts('category_name=donde_esta_el_pique');

        if (have_posts()) : while (have_posts()) : the_post();
                ?>
                <div class="elPique">
                    <div class="image"><?php the_post_thumbnail('index-thumbnail'); ?></div>
                    <div class="detalle">
                        <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                        <br/>
                        <p><?php the_excerpt(50); ?></p>
                        <a class="link" href="<?php the_permalink(); ?>">Mostrar Mapa</a>
                    </div>
                </div>

                <?php
            endwhile;
        else :
            echo 'No hay post para mostrar';
        endif;
        ?>


        <?php
        query_posts('category_name=motores,astilleros&showposts=2');

        if (have_posts()) : while (have_posts()) : the_post();
                ?>
                <div class="post">
                    <div class="image"><?php the_post_thumbnail('index-thumbnail'); ?></div>
                    <div class="detalle">
                        <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                        <br/>
                        <p><?php the_excerpt(50); ?></p>
                        <a class="link" href="<?php the_permalink(); ?>">Leer más...</a>
                    </div>
                </div>

                <?php
            endwhile;
        else :
            echo 'No hay post para mostrar';
        endif;
        ?>
    </div>
</div>



